
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __SKHYNIX_DAC_H
#define __SKHYNIX_DAC_H

/* Includes ------------------------------------------------------------------*/
#include "stm32f37x.h"

/* Exported constants --------------------------------------------------------*/
enum {
	DAC_1=0, DAC_2, DAC_3, DAC_MAX,
	STEP_TOFF=0, STEP_TR, STEP_TON, STEP_TF,
};

/* Exported types ------------------------------------------------------------*/
/* Exported macro ------------------------------------------------------------*/
/* Exported functions ------------------------------------------------------- */
void Dac_Init(void);
void Dac_Proc(u32 mode, u32 modeChanged);

void Dac_Set_Sel(u32 dac, u32 on);	/* off(DacOut), on(LoopBack) */
u32 Dac_Get_Sel(u32 dac);

void Dac_Set_Flt(u32 dac, u32 on);	/* off(FastFliter), on(SlowFliter) */
u32 Dac_Get_Flt(u32 dac);

void Dac_Out_Host(PVOUT_DATA pVout, u32 timerStart);
u32 Dac_Out_Trigger(u32 rising);

void Dac_Out_Set_Step(u32 dac, u32 step);
u32 Dac_Out_Get_Step(u32 dac);


#endif  /* __SKHYNIX_DAC_H */
